/*
 * InvoiceItem.java 2012-8-21
 * Copyright(c) 20012-2015 by covidien
 * ALL Rights Reserved.
 */
package com.mvc.finance.model;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.mvc.business.model.BaseUnit;

/**
 * 
 * @author Bob pu [bangxiong.pu@covidien.com]
 * @version V1.0 Create Time: 2012-8-21
 */
@Entity(name = "B_COMMERCIAL_INVOICE_ITEM")
public class CommercialInvoiceItem extends BaseUnit {

	@NotNull
	private Integer	commercialInvoiceId;
	@NotNull
	@Length(max = 32)
	private String	customerPerchaseNo;
	@NotNull
	@Length(max = 512)
	private String	productDecription;
	@NotNull
	private Double	unitPrice;
	@NotNull
	private Integer	orderItemId;

	/**
	 * @return the commercialInvoiceId
	 */
	public Integer getCommercialInvoiceId() {
		return commercialInvoiceId;
	}

	/**
	 * @param commercialInvoiceId
	 *            the commercialInvoiceId to set
	 */
	public void setCommercialInvoiceId(Integer commercialInvoiceId) {
		this.commercialInvoiceId = commercialInvoiceId;
	}

	public String getProductDecription() {
		return productDecription;
	}

	public void setProductDecription(String productDecription) {
		this.productDecription = productDecription;
	}

	public Double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(Double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public String getCustomerPerchaseNo() {
		return customerPerchaseNo;
	}

	public void setCustomerPerchaseNo(String customerPerchaseNo) {
		this.customerPerchaseNo = customerPerchaseNo;
	}

	public Integer getOrderItemId() {
		return orderItemId;
	}

	public void setOrderItemId(Integer orderItemId) {
		this.orderItemId = orderItemId;
	}
}
